﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml;

namespace FinancialDB
{
    public partial class home_FX_Panel : Form
    {
        public home_FX_Panel()
        {
            InitializeComponent();
        }

        private void linkLabel41_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.Load(@"../../Users/userdata.xml");
            XmlNode firstpage = xmldoc.SelectSingleNode("/root/firstpage");
            ((XmlElement)firstpage).SetAttribute("name", "fx");
            xmldoc.Save(@"../../Users/userdata.xml");

            MessageBox.Show("已将当前页设置为默认首页。", "信息", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
        }
    }
}
